
package game.manager {
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	
	import utils.Singleton;
	
	/**
	 * LayerManager
	 *
	 * @author chris
	 *
	 * Apr 13, 2013
	 */
	public class LayerManager extends Singleton {
		
		public var sceneLayer:Sprite;
		public var gridLayer:Sprite;
		public var operateLayer:Sprite;
		public var windowLayer:Sprite;
		public var loginLayer:Sprite;
		
		public function LayerManager()
		{
			super();
		}
		
		public static function get inst():LayerManager {
			return Singleton.getInstanceOrCreate(LayerManager) as LayerManager;
		}
		
		public function initLayers(parent:Sprite):void {
			sceneLayer = new Sprite();
			parent.addChild(sceneLayer);
			
			gridLayer = new Sprite();
			parent.addChild(gridLayer);
			
			operateLayer = new Sprite();
			parent.addChild(operateLayer);
			
			windowLayer = new Sprite();
			parent.addChild(windowLayer);
			
			loginLayer = new Sprite();
			parent.addChild(loginLayer);
		}
	}
}